<html DIR="LTR" xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tool="http://www.microsoft.com/tooltip"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=Windows-1252"></META><META NAME="save" CONTENT="history"></META><title>Working with Team Foundation Server Workspaces</title><STYLE TYPE="text/css">
    body
    {
        background:    #FFFFFF;
        color: #000000;
        font-family:    Verdana;
        font-size: medium;
        font-style: normal;
        font-weight: normal;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        width:    100%;
    }
    
    a
    {
        color:    #0000FF;
    }
    
    a:visited
    {
        color:    #0000FF;
    }
    
    a:link
    {
        color:    #0000FF;
    }
    
    a:hover
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    a:active
    {
        color:    #FF0000;
        cursor: hand;
    }
    
    div#mainSection
    {
        font-size: 70%;
        width: 100%;
    }
    
    div#mainBody
    {
        font-size: 90%;
        margin-left:    5;
        margin-top: 10;
        padding-bottom: 20;
    }
    
    div#header
    {
        background-color: #D4DFFF;
        padding-top:    0;
        padding-bottom:    0;
        padding-left:    0;
        padding-right:    0;
        width:    100%;
    }
    
    div#header table
    {
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        width:    100%;
    }
    
    span#runningHeaderText
    {
        color: #003399;
        font-size: 90%;
    }
    
    span#nsrTitle
    {
        color: #003399;
        font-size: 125%;
        font-weight: 600;
    }
    
    div#header table td
    {
        color: #0000FF;
        font-size: 70%;
        margin-top:    0;
        margin-bottom:    0;
        padding-right: 20;
    }
    
    div#header table tr#headerTableRow3 td
    {
        padding-bottom: 2;
        padding-top: 5;
    }
    
    div#header table#bottomTable
    {
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        text-align: left;
    }
    
    div#footer
    {
        font-size: 90%;
        margin-top:    0;
        margin-bottom:    0;
        margin-left:    0;
        margin-right:    0;
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    2;
        padding-right:    2;
        width:    100%;
    }
    
    hr#footerHR
    {
        border-bottom-color: #EEEEFF;
        border-bottom-style: solid;
        border-bottom-width: 1;
        border-top-color: C8CDDE;
        border-top-style: solid;
        border-top-width: 1;
        height: 3;
        color: #D4DFFF;
    }
    
    div.section
    {
        padding-top:    2;
        padding-bottom:    2;
        padding-left:    16;
        padding-right:    15;
        width:    100%;
    }
    
    .heading
    {
        font-weight:    bold;
        margin-top:        18;
        margin-bottom:    8;
    }
    
    h1.heading
    {
        color: #003399;
        font-size:    125%;
    }
    
    .subHeading
    {
        font-weight:    bold;
        margin-bottom:    4;
    }
    
    h3.subHeading
    {
        color:  #003399;
        font-size: 115%;
        font-weight: bold;
    }
    
    h4.subHeading
    {
        color: #003399;
        font-size: 105%;
    }
    
    h5.subHeading
    {
        color: #003399;
        font-size: 100%;
    }
    
    img.toggle
    {
    	border: 0;
	margin-right: 5;
    }

    img.copyCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.downloadCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.viewCodeImage
    {
	border: 0;
	margin-right: 3;
    }

    img.note
    {
	border: 0;
	margin-right: 3;
    }

    img#languageFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#membersOptionsFilterImage
    {
	border: 0;
	margin-left: 10;
	vertical-align: middle;
    }

    img#toggleAllImage
    {
	margin-left: 4;
	vertical-align: middle;
    }
    
    div#mainSection table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div#mainSection table th
    {
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    div#mainSection table td.imageCell
    {
        white-space: nowrap;
    }
    
    div.code table
    {
        border: 0;
        font-size: 95%;
        margin-bottom: 5;
        width: 100%
    }
    
    div.code table th
    {    
        background:    #EFEFF7;
        border-bottom-color: #C8CDDE;
        border-bottom-style: solid;
        border-bottom-width: 1;
        color: #000066;
        font-weight: bold;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.code table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
        padding-top: 5;
    }
    
    div.alert table
    {
        border: 0;
        font-size: 100%;
        width:    100%;
    }
    
    div.alert table th
    {
        background:    #EFEFF7;
        border-bottom-width: 0;
        color: #000066;
        padding-left: 5;
        padding-right: 5;
    }
    
    div.alert table td
    {
        background:    #F7F7FF;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1;
        padding-left: 5;
        padding-right: 5;
    }
    
    .copyCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .downloadCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    .viewCode
    {
        color: #0000ff;
        font-size: 90%;
        font-weight: normal;
    }
    
    div.code pre
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
        word-wrap:    break-word;
    }
    
    code
    {
        font-family:    Monospace, Courier New, Courier;
        font-size: 105%;
        color:    #000066;
    }
    
    dl
    {
        margin-top:    0;
        padding-left:    1;
    }
    
    dt
    {
        font-style:    italic;
    }
    
    dd
    {
        margin-bottom:    0;
        margin-left:    0;
    }
    
    ul
    {
        margin-left: 17;
        list-style-type: disc;
    }
    
    ul ul
    {
        margin-bottom: 4;
        margin-left: 17;
        margin-top: 3;
        list-style-type: disc;
    }
    
    ol
    {
        margin-left: 24;
        list-style-type: decimal;
    }
    
    ol ol
    {
        margin-bottom: 4;
        margin-left: 24;
        margin-top: 3;
        list-style-type: lower-alpha;
    }
    
    li
    {
        margin-bottom: 3;
    }
    
    p
    {
        margin-top: 0;
        margin-bottom: 15;
    }
    
    .tip
    {
        color:    #0000FF;
        font-style: italic;
        cursor:hand;
        text-decoration:underline;
    }
    
    .languageFilter
    {
        color:    #0000FF;
        cursor:hand;
        text-decoration:underline;
        padding-bottom:4;
    }
    
    .math
    {
        font-family: Times New Roman;
        font-size: 125%
    }
    
    .sourceCodeList
    {
        font-family: Verdana;
        font-size: 90%;    
    }
    
    pre.viewCode
    {
        width: 100%;
        overflow: auto;
    }
    
    MSHelp\:link
    {
        text-decoration: underline;
        color: #0000ff; 
        hoverColor: #3366ff;
        filterString: ;
    }
</STYLE>
</head>
<body><input type="hidden" id="userDataCache" class="userDataStyle"></input><input type="hidden" id="hiddenScrollOffset"></input><img id="dropDownImage" style="display:none; height:0; width:0;" src="drpdown.gif"><img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="drpdown_orange.gif"><img id="collapseImage" style="display:none; height:0; width:0;" src="collapse.gif"><img id="expandImage" style="display:none; height:0; width:0;" src="exp.gif"><img id="copyImage" style="display:none; height:0; width:0;" src="copycode.gif"><img id="copyHoverImage" style="display:none; height:0; width:0;" src="copycodeHighlight.gif"><div id="header"><table width="100%" id="topTable"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText"></span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">Working with Team Foundation Server Workspaces</span></td></tr><tr id="headerTableRow3"></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory"></div>
				<p>A workspace for Visual Studio Team Foundation Server
 comprises a set of working folder mappings. These mappings represent the location of your client-side folders on your local disk and the corresponding Repository Folders. In addition, the name of the workspace owner and the name of the computer on which the workspace is used are also stored in Team Foundation Server
. </p>
				<p>By default, the local working folder paths are set to projects in the current Eclipse workspace directory when you share or import projects. This topic describes the tasks that you can perform in your Team Foundation Server
 workspace.</p>
				<p>
				</p>
				<p>In this topic</p>
				<ul><li class="unordered">
						
							<a href="#UnderstandingWWF">Understanding Team Foundation Server Workspaces and Working Folders</a>
						<br /><br />
					</li><li class="unordered">
						
							<a href="#ViewTFSWorkspace">View Team Foundation Server Workspaces and the Working Folders</a>
						<br /><br />
					</li><li class="unordered">
						
							<a href="#AddRemoveChangeWFolder">Add, Remove, or Change Working Folders</a>
						<br /><br />
					</li><li class="unordered">
						
							<a href="#CloakWFolders">Cloak or Uncloak Working Folders</a>
						<br /><br />
					</li><li class="unordered">
						
							<a href="#AddRemoveTFSWorkspace">Add or Remove a Team Foundation Server Workspace</a>
						<br /><br />
					</li></ul>
				<p>
				</p>
			<a name="UnderstandingWWF"></a><a name="workspaces#UnderstandingWWF"></a><h1 class="heading">Understanding Team Foundation Server Workspaces and Working Folders</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">An Eclipse workspace is a container for projects, much like a solution in Visual Studio
. A Team Foundation Server
 workspace maps your local folders to folders on an instance of Team Foundation Server
. In the local working folders for your Team Foundation Server
 workspace, you can add, edit, delete, move, rename, or otherwise change version-controlled items without affecting the folder on the version control server. You can also build and test changes without affecting the items on the version control server. The system registers changes to local items as pending changes. When you perform a check-in operation, you commit the local changes to the folder on the version control server. The check-in operation registers the update and makes the update available to other members of the team.</p>
					<p xmlns="">A workspace mapping is a list of active and cloaked items. When you map a local folder to a folder on the server for Team Foundation version control
, the system implicitly creates a mapping between all its current and future subfolders. For example, you might map $/projects to c:\projects, add a project that is named $/projects/project_one, and then get all files in the workspace. If you do this, Team Explorer Everywhere automatically creates a local working folder that is named project_one in the C:\projects directory.</p>
					<p xmlns="">You must have a Team Foundation Server
 workspace before you can perform Team Foundation version control
 commands on your computer. Team Foundation
 stores the following information about your workspaces:</p>
					<ul xmlns=""><li class="unordered">
							A list of all the files in your workspace.<br /><br />
						</li><li class="unordered">
							The version of each file.<br /><br />
						</li><li class="unordered">
							A list of the pending changes.<br /><br />
						</li></ul>
					<p xmlns="">Because the server stores this information, other users who have the correct permissions can duplicate your working environment on their computers. However, they will not be able to see details for any pending changes. For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184621" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Get Command (Team Foundation Version Control)</linkText></a>.</p>
					<p xmlns="">
						<b>Mapping Local Folders to Folders on the Version Control Server</b>
					</p>
					<p xmlns="">Workspace mapping establishes a client-side working folder. This is where you put files and subfolders when you execute a <b>Get</b> operation.</p>
					<p xmlns="">You can add and remove mappings for a workspace by using the Team Foundation Server plug-in for Eclipse or by using the <b>workfold</b> command from the Cross-platform Command-line Client for Team Foundation Server. For more information, see <a href="#AddRemoveChangeWFolder">Add, Remove, or Change Working Folders</a>.</p>
					<p xmlns="">You can also provide cloak mappings. Cloak mappings prevent the retrieval of files and subfolders in the specified server folder when you execute the <b>Get</b> operation. You can establish workspace mappings manually in the <b>Create Workspace</b> dialog box. Otherwise, Team Foundation
 will create the workspace mappings automatically when you add files to version control. For more information, see <a href="#AddRemoveTFSWorkspace">Add or Remove a Team Foundation Server Workspace</a>.</p>
				</content></div><a name="ViewTFSWorkspace"></a><a name="workspaces#ViewTFSWorkspace"></a><h1 class="heading">View Team Foundation Server Workspaces and the Working Folders</h1><div id="sectionSection1" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">
						<b>Required Permissions</b>
					</p>
					<p xmlns="">To view Team Foundation Server
 workspaces, you must have the <b>Read</b> permission set to <b>Allow</b>. To view working folder mappings, you must be the owner of the specified or implied workspace or have the global <b>Administer workspaces</b> permission set to <b>Allow</b>. For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=182567" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Team Foundation Server Permissions</linkText></a>.</p>
					<h4 class="subHeading" xmlns=""><b>To view your Team Foundation Server workspaces</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Project Explorer</b> or <b>Package Explorer</b>, right-click an Eclipse project that is under version control, point to <b>Team</b>, and click <b>Manage Workspaces</b>.</p>
									<p xmlns="">The <b>Workspaces</b> dialog box appears. It shows you the list of your Team Foundation Server
 workspaces.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">If you want to view the working folders and mappings, click the Team Foundation Server
 workspace for which you want to view mappings, and then click <b>Edit</b>.</p>
									<p xmlns="">The <b>Edit Workspace</b> dialog box appears. It provides a list of your working folders. For each mapping, the list includes the status (active or cloaked), the folder on the server, and the corresponding local folder.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To view your Team Foundation Server workspaces from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workspaces</b>, and press ENTER.</p>
									<p xmlns="">A list of all workspaces for the current user on the current computer appears.</p>
									<p xmlns="">For more information, see the following page on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184910" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workspaces Command (Team Foundation Version Control)</linkText></a>.</p>
								</content>
							</li></ol></ddue:steps></div>
				</content></div><a name="AddRemoveChangeWFolder"></a><a name="workspaces#AddRemoveChangeWFolder"></a><h1 class="heading">Add, Remove, or Change Working Folder Mappings</h1><div id="sectionSection2" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">Each Team Foundation Server
 workspace has an associated set of working folders that map the folder on the version control server to a folder on your local computer. You can decide to map only the immediate children of a folder on the server to a local workspace. You can do this by providing an asterisk wild-card character when you specify the folder. Otherwise, by default all the children of the folder on the server are recursively mapped to the local workspace.</p>
					<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td>
						Instead of deleting a working folder mapping, you can change it to a cloaked status to save space on your local disk. You might choose to do this if you will later need to get those files and want to define all of your mappings at the start of the project. For more information, see <a href="#CloakWFolders">Cloak or Uncloak Working Folders</a>.<p></p>
					</td></tr></table><p></p></div>
					<p xmlns="">Mapping only one level in a version control hierarchy can limit the number of items that are downloaded to the client computer. This provides faster download times and saves disk space on the client computer.</p>
					<p xmlns="">
						<b>Required Permissions</b>
					</p>
					<p xmlns="">To perform these procedures, you must be the owner of the specified or implied workspace or have the global <b>Administer workspaces permission</b> set to <b>Allow</b>. For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=182567" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Team Foundation Server Permissions</linkText></a>.</p>
					<h4 class="subHeading" xmlns=""><b>To map working folders</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">View the working folders for your Team Foundation Server
 workspace. For more information, see <a href="#ViewTFSWorkspace">View Team Foundation Server Workspaces and the Working Folders</a>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the <b>Working folders</b> list, click <b>Click here to enter a new working folder</b> in the <b>Source Control Folder</b> column.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Source Control Folder</b>, type the path of the server folder that you want to map to a local folder, or click the Browse button (<b>...</b>) to specify the folder.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Local Folder</b>, type the path of the local folder that corresponds to the server folder, or click the Browse button (<b>...</b>) to specify the folder.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">(Optional) If you want the mapping to be cloaked (cloaked files are not copied to your local folder), change the <b>Status</b> column from <b>Active</b> to <b>Cloaked</b>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Repeat steps 2 through 5 until you have added all the mappings that you want, and then click <b>OK</b>.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To remove working folder mappings</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">View the working folders for your Team Foundation Server
 workspace. For more information, see <a href="#ViewTFSWorkspace">View Team Foundation Server Workspaces and the Working Folders</a>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the <b>Working folders</b> list, right-click the row that corresponds to the working folder mapping that you want to remove, and then click <b>Delete</b>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Repeat the previous step for any other mappings that you want to remove, and then click <b>OK</b>.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To change working folder mappings</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">View the working folders for your Team Foundation Server
 workspace. For more information, see <a href="#ViewTFSWorkspace">View Team Foundation Server Workspaces and the Working Folders</a>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the <b>Working folders</b> list, in <b>Local Folder</b>, update the path of the local folder that corresponds to the mapping that you want to change.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Caution </th></tr><tr><td>
										You should not change the local folder mapping if you have pending changes in the local folder.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Repeat the previous step for any other mappings that you want to change, and then click <b>OK</b>.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To add or update working folder mappings from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workfold </b> <i>ServerFolder</i> <i>LocalFolder</i>, and then press ENTER. Replace <i>ServerFolder</i> with the folder on the instance of Team Foundation Server
. Replace <i>LocalFolder</i> with the path on your local computer that you want to map to that server folder. If a mapping already exists, it will be replaced.</p>
									<p xmlns="">For more information, see the following page on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184909" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workfold Command (Team Foundation Version Control)</linkText></a>.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Important </th></tr><tr><td>
										You should not change your working folder mappings if you have pending changes in the local folder.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To remove working folder mappings from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workfold -unmap </b> <i>LocalFolder</i>, and then press ENTER. Replace <i>LocalFolder</i> with the path on your local computer that you want to map to that server folder.</p>
									<p xmlns="">For more information, see the following page on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184909" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workfold Command (Team Foundation Version Control)</linkText></a>.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Important </th></tr><tr><td>
										You should remove your working folder mappings if you have pending changes in the local folder.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li></ol></ddue:steps></div>
				</content></div><a name="CloakWFolders"></a><a name="workspaces#CloakWFolders"></a><h1 class="heading">Cloak or Uncloak Working Folders</h1><div id="sectionSection3" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">By setting the working folder status to <b>Cloaked</b>, you can specify that a local folder should not copy files from the server when you perform a <b>Get</b> operation. You might choose to do this to conserve space on your local disk. If you later decide that you need to get files in those cloaked folders, you must change the status to <b>Active</b> and then perform a <b>Get</b> operation.</p>
					<p xmlns="">
						<b>Required Permissions</b>
					</p>
					<p xmlns="">To perform these procedures, you must be the owner of the specified or implied workspace or have the global <b>Administer workspaces permission</b> set to <b>Allow</b>. For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=182567" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Team Foundation Server Permissions</linkText></a>.</p>
					<h4 class="subHeading" xmlns=""><b>To cloak or uncloak a working folder</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">View the working folders for your Team Foundation Server
 workspace. For more information, see <a href="#ViewTFSWorkspace">View TFS Workspaces and the Working Folders</a>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">To cloak a working folder, in the <b>Working folders</b> list, change the <b>Status</b> to <b>Cloaked</b> for the local folder that you want to change.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Caution </th></tr><tr><td>
										You should not change the status to <b>Cloaked</b> if you have pending changes in the local folder.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">To uncloak a working folder, in the <b>Working folders</b> list, change the <b>Status</b> to <b>Active</b> for the local folder that you want to change.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Repeat step 2 or 3 for any other local folders that you want to change, and then click <b>OK</b>.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To cloak a working folder from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workfold -cloak </b> <i>LocalFolder</i>, and then press ENTER. Replace <i>LocalFolder</i> with the name of the folder that you want to cloak.</p>
									<p xmlns="">For more information, see the following page on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184909" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workfold Command (Team Foundation Version Control)</linkText></a>.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Caution </th></tr><tr><td>
										You should not change the status to <b>Cloaked</b> if you have pending changes in the local folder.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To uncloak a working folder from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workfold -decloak </b> <i>LocalFolder</i>, and then press ENTER. Replace <i>LocalFolder</i> with the name of the folder that you want to uncloak.</p>
									<p xmlns="">For more information, see the following page on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184909" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workfold Command (Team Foundation Version Control)</linkText></a>.</p>
								</content>
							</li></ol></ddue:steps></div>
				</content></div><a name="AddRemoveTFSWorkspace"></a><a name="workspaces#AddRemoveTFSWorkspace"></a><h1 class="heading">Add or Remove a Team Foundation Server Workspace</h1><div id="sectionSection4" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
					<p xmlns="">A single Team Foundation Server
 workspace can contain multiple team projects. You might want to maintain multiple copies of source files pointing to different versions of files. This can be helpful if you are working on a new release but must be able to refer back to the source files from a previous release. Also, adding a dedicated test workspace on your computer is useful when you perform peer reviews of a team member's code.</p>
					<p xmlns="">In the Team Foundation Server plug-in for Eclipse, you must use a different Eclipse workspace for each Team Foundation Server
 workspace.</p>
					<p xmlns="">
						<b>Required Permissions</b>
					</p>
					<p xmlns="">To modify or delete an existing workspace, you must own it or have the global <b>Administer</b> workspaces permission set to <b>Allow</b>. To add a workspace, you must have the global <b>Create a workspace permission</b> set to <b>Allow</b>. To add workspaces for other users, you must have the <b>Administer workspaces permission</b> set to <b>Allow</b>. For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=182567" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Team Foundation Server Permissions</linkText></a>.</p>
					<h4 class="subHeading" xmlns=""><b>To add a Team Foundation Server workspace</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Project Explorer</b> or <b>Package Explorer</b>, right-click an Eclipse project that is under version control, point to <b>Team</b>, and click <b>Manage Workspaces</b>.</p>
									<p xmlns="">The <b>Workspaces</b> dialog box appears. It shows you the list of your Team Foundation Server
 workspaces.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Click <b>Add</b>.</p>
									<p xmlns="">The <b>Add Workspace</b> dialog box appears.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Name</b>, provide a descriptive name for the new workspace.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Comment</b>, you can provide additional information about the workspace. For example, you might provide information about the release to which the workspace corresponds.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">(Optional) Add one or more working folder mappings by performing the following steps:</p>
									<ol class="ordered" xmlns=""><li>
											In the <b>Working folders</b> list, click <b>Click here to enter a new working folder</b> in the <b>Source Control Folder</b> column.<br /><br />
										</li><li>
											In <b>Source Control Folder</b>, type the path of the server folder that you want to map to a local folder, or click the Browse button (<b>...</b>) to specify the folder.<br /><br />
										</li><li>
											In <b>Local Folder</b>, type the path of the local folder that corresponds to the server folder or click the Browse button (<b>...</b>) to specify the folder.<br /><br />
										</li><li>
											(Optional) If you want the mapping to be cloaked (cloaked files are not copied to your local folder), change the <b>Status</b> column from <b>Active</b> to <b>Cloaked</b>.<br /><br />
										</li><li>
											Repeat steps 5a through 5d until you have added all the mappings that you want.<br /><br />
										</li></ol>
									<p xmlns="">You can add more mappings later. For more information, see <a href="#AddRemoveChangeWFolder">Add, Remove, or Change Working Folder Mappings</a>.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Click <b>OK</b> to create the Team Foundation Server
 workspace.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To add a TFS workspace from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workspace -new -s:</b><i>ServerName</i><b> -collection:</b><i>URL</i> <i>WorkspaceName</i> and then press ENTER. Replace <i>ServerName</i> with the name of the server that is running Team Foundation Server
. Replace <i>URL</i> with the path of your team project collection. You can omit the <b>-collection</b> option if you are connecting to Visual Studio Team System 2008 Team Foundation Server or Visual Studio 2005 Team Foundation Server. Replace <i>WorkspaceName</i> with the name that you want to give the new Team Foundation Server
 workspace.</p>
									<p xmlns="">For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184905" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workspace Command (Team Foundation Version Control)</linkText></a>.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To remove a Team Foundation Server workspace</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In <b>Project Explorer</b> or <b>Package Explorer</b>, right-click an Eclipse project that is under version control, point to <b>Team</b>, and click <b>Manage Workspaces</b>.</p>
									<p xmlns="">The <b>Workspaces</b> dialog box appears. It shows you the list of your Team Foundation Server
 workspaces.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">In the <b>Workspaces</b> list, click the Team Foundation Server
 workspace that you want to remove, and then click <b>Remove</b>.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Caution </th></tr><tr><td>
										When you delete a Team Foundation Server
 workspace, you lose all pending changes in that workspace. If you are unsure whether you have pending changes, you should cancel the operation and check in or discard any pending changes before you remove the workspace.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">To continue with the remove operation, click <b>OK</b> in the confirmation dialog box.</p>
								</content>
							</li></ol></ddue:steps></div>
					<h4 class="subHeading" xmlns=""><b>To remove a Team Foundation Server workspace from a command prompt</b></h4><div class="subSection" xmlns=""><ddue:steps xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"><ol class="ordered" xmlns=""><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Open a command prompt.</p>
								</content>
							</li><li>
								<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
									<p xmlns="">Type <b>tf workspace -delete </b> <i>WorkspaceName</i>, and then press ENTER. Replace <i>WorkspaceName</i> with the name of the Team Foundation Server
 workspace that you want to delete.</p>
									<p xmlns="">For more information, see the following topic on the Microsoft Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=184905" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Workspace Command (Team Foundation Version Control)</linkText></a>.</p>
									<div class="alert" xmlns=""><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Caution </th></tr><tr><td>
										When you delete a Team Foundation Server
 workspace, you lose all pending changes in that workspace. If you are unsure whether you have pending changes, you should cancel the operation and check in or discard any pending changes before you remove the workspace.<p></p>
									</td></tr></table><p></p></div>
								</content>
							</li></ol></ddue:steps></div>
				</content></div><h1 class="heading"><span id="seeAlsoNoToggle">See Also</span></h1><div id="seeAlsoSection" class="section"><h4 class="subHeading">Concepts</h4><a href="putundervc.htm" target="_blank">Placing Files under Version Control</a><br /><a href="getlocalcopy.htm" target="_blank">Getting a Local Copy of Files from the Version Control Server</a><br /><a href="usingversionctrl.htm" target="_blank">Using Version Control</a><br /><br /></div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/>
		<![endif]--></div><div id="footer"><hr /><p /></div></div></body></html>